# Buyruqlar

# sh yoki bash buyrug'ida ishlash

# sh
# test="Salom"
# echo $test
Salom
# exit

# sh 
# echo test 

# exit 

# env
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
EDITOR=nvim
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/tilda.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=144682
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GSETTINGS_SCHEMA_DIR=/home/ubuntu/data
GTK_MODULES=gail:atk-bridge
HOME=/home/ubuntu
IM_CONFIG_PHASE=1
INVOCATION_ID=b49fe65035d0496a83f0751baf86c19f
JOURNAL_STREAM=8:46488
LANG=en_US.UTF-8
LC_ADDRESS=uz_UZ.UTF-8
LC_IDENTIFICATION=uz_UZ.UTF-8
LC_MEASUREMENT=uz_UZ.UTF-8
LC_MONETARY=uz_UZ.UTF-8
LC_NAME=uz_UZ.UTF-8
LC_NUMERIC=uz_UZ.UTF-8
LC_PAPER=uz_UZ.UTF-8
LC_TELEPHONE=uz_UZ.UTF-8
LC_TIME=uz_UZ.UTF-8
LOGNAME=ubuntu
MANAGERPID=1484
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
OMF_CONFIG=/home/ubuntu/.config/omf
OMF_PATH=/home/ubuntu/.local/share/omf
PATH=/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
POWERLINE_CONFIG_COMMAND=powerline-config
PWD=/home/ubuntu/Documents/Students/Mansurova_Mohinabonu/intensiv/00 Shell and Git/Shell 5 $, env. export
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
SESSION_MANAGER=local/ubuntu-laptop:@/tmp/.ICE-unix/1727,unix/ubuntu-laptop:/tmp/.ICE-unix/1727
SHELL=/usr/bin/fish
SHLVL=2
SSH_AGENT_PID=1677
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm-256color
TMUX=/tmp/tmux-1000/default,150872,0
TMUX_PANE=%1
USER=ubuntu
USERNAME=ubuntu
VTE_VERSION=6003
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus

# export test=Salom

# env
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
EDITOR=nvim
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/tilda.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=144682
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GSETTINGS_SCHEMA_DIR=/home/ubuntu/data
GTK_MODULES=gail:atk-bridge
HOME=/home/ubuntu
IM_CONFIG_PHASE=1
INVOCATION_ID=b49fe65035d0496a83f0751baf86c19f
JOURNAL_STREAM=8:46488
LANG=en_US.UTF-8
LC_ADDRESS=uz_UZ.UTF-8
LC_IDENTIFICATION=uz_UZ.UTF-8
LC_MEASUREMENT=uz_UZ.UTF-8
LC_MONETARY=uz_UZ.UTF-8
LC_NAME=uz_UZ.UTF-8
LC_NUMERIC=uz_UZ.UTF-8
LC_PAPER=uz_UZ.UTF-8
LC_TELEPHONE=uz_UZ.UTF-8
LC_TIME=uz_UZ.UTF-8
LOGNAME=ubuntu
MANAGERPID=1484
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
OMF_CONFIG=/home/ubuntu/.config/omf
OMF_PATH=/home/ubuntu/.local/share/omf
PATH=/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
POWERLINE_CONFIG_COMMAND=powerline-config
PWD=/home/ubuntu/Documents/Students/Mansurova_Mohinabonu/intensiv/00 Shell and Git/Shell 5 $, env. export
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
SESSION_MANAGER=local/ubuntu-laptop:@/tmp/.ICE-unix/1727,unix/ubuntu-laptop:/tmp/.ICE-unix/1727
SHELL=/usr/bin/fish
SHLVL=2
SSH_AGENT_PID=1677
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm-256color
TMUX=/tmp/tmux-1000/default,150872,0
TMUX_PANE=%1
USER=ubuntu
USERNAME=ubuntu
VTE_VERSION=6003
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
test=Salom

# sh 
# export -p

# echo $test 
Salom

# exit 

# env --help

Usage: env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Set each NAME to VALUE in the environment and run COMMAND.

Mandatory arguments to long options are mandatory for short options too.
  -i, --ignore-environment  start with an empty environment
  -0, --null           end each output line with NUL, not newline
#  -u, --unset=NAME     remove variable from the environment
  -C, --chdir=DIR      change working directory to DIR
  -S, --split-string=S  process and split S into separate arguments;
                        used to pass multiple arguments on shebang lines
  -v, --debug          print verbose information for each processing step
      --help     display this help and exit
      --version  output version information and exit

A mere - implies -i.  If no COMMAND, print the resulting environment.

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation at: <https://www.gnu.org/software/coreutils/env>
or available locally via: info '(coreutils) env invocation'

# env -u test yoki env --unset=test 

# env
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
EDITOR=nvim
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/tilda.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=144682
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GSETTINGS_SCHEMA_DIR=/home/ubuntu/data
GTK_MODULES=gail:atk-bridge
HOME=/home/ubuntu
IM_CONFIG_PHASE=1
INVOCATION_ID=b49fe65035d0496a83f0751baf86c19f
JOURNAL_STREAM=8:46488
LANG=en_US.UTF-8
LC_ADDRESS=uz_UZ.UTF-8
LC_IDENTIFICATION=uz_UZ.UTF-8
LC_MEASUREMENT=uz_UZ.UTF-8
LC_MONETARY=uz_UZ.UTF-8
LC_NAME=uz_UZ.UTF-8
LC_NUMERIC=uz_UZ.UTF-8
LC_PAPER=uz_UZ.UTF-8
LC_TELEPHONE=uz_UZ.UTF-8
LC_TIME=uz_UZ.UTF-8
LOGNAME=ubuntu
MANAGERPID=1484
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
OMF_CONFIG=/home/ubuntu/.config/omf
OMF_PATH=/home/ubuntu/.local/share/omf
PATH=/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/go/bin:node_modules/.bin:/home/ubuntu/.local/bin:/home/ubuntu/bin:bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
POWERLINE_CONFIG_COMMAND=powerline-config
PWD=/home/ubuntu/Documents/Students/Mansurova_Mohinabonu/intensiv/00 Shell and Git/Shell 5 $, env. export
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
SESSION_MANAGER=local/ubuntu-laptop:@/tmp/.ICE-unix/1727,unix/ubuntu-laptop:/tmp/.ICE-unix/1727
SHELL=/usr/bin/fish
SHLVL=2
SSH_AGENT_PID=1677
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm-256color
TMUX=/tmp/tmux-1000/default,154181,0
TMUX_PANE=%0
USER=ubuntu
USERNAME=ubuntu
VTE_VERSION=6003
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
